package com.yundingai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yundingai.domain.entity.UserSocialData;
import com.yundingai.mapper.UserSocialDataMapper;
import com.yundingai.service.UserSocialDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author HuangZhengmin
 * @desc
 * @Date 2025/7/25 16:53
 * @Version 1.0
 */
@Service
public class UserSocialDataServiceImpl extends ServiceImpl<UserSocialDataMapper, UserSocialData>
        implements UserSocialDataService {
  @Autowired
  private UserSocialDataMapper userSocialDataMapper;

  @Override
  public void updateByUserId(UserSocialData userSocialData) {
    userSocialDataMapper.updateByUserId(userSocialData);
  }

  @Override
  public void removeByUserId(Integer userId) {
    userSocialDataMapper.removeByUserId(userId);
  }

  @Override
  public UserSocialData queryByUserId(Integer userId) {
    return userSocialDataMapper.queryByUserId(userId);
  }
}
